package com.hoppinzq.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CodeDao {

    @Select("SELECT COUNT(*) FROM BLOG")
    int queryBlogCount();

    @Select("select count(1) from blog where type = 1 and author = #{authorId}")
    int getBlogCgCount(Long authorId);
}
